import request from '@/utils/request'

// 查询校区分销商品审核列表
export function listDistribution(query) {
  return request({
    url: '/campus/distribution/list',
    method: 'get',
    params: query
  })
}

// 查询校区分销商品审核详细
export function getDistribution(distriId) {
  return request({
    url: '/campus/distribution/' + distriId,
    method: 'get'
  })
}

// 新增校区分销商品审核
export function addDistribution(data) {
  return request({
    url: '/campus/distribution',
    method: 'post',
    data: data
  })
}

// 修改校区分销商品审核
export function updateDistribution(data) {
  return request({
    url: '/campus/distribution',
    method: 'put',
    data: data
  })
}

// 删除校区分销商品审核
export function delDistribution(distriId) {
  return request({
    url: '/campus/distribution/' + distriId,
    method: 'delete'
  })
}
